package cn.zn.modules.pz.cur.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tp_repay_money")
public class TpRepayMoney {
    @TableId(value = "ID_", type = IdType.INPUT)
    private String id;

    @TableField(value = "CREATE_TIME_")
    private Date createTime;

    @TableField(value = "CREATE_USER_ID_")
    private String createUserId;

    @TableField(value = "IS_ACTIVE_")
    private Boolean isActive;

    @TableField(value = "REMARK_")
    private String remark;

    @TableField(value = "SORT_NUM_")
    private Integer sortNum;

    @TableField(value = "UPDATE_TIME_")
    private Date updateTime;

    @TableField(value = "UPDATE_USER_ID_")
    private String updateUserId;

    @TableField(value = "VERSION_")
    private Integer version;

    /**
     * 金额
     */
    @TableField(value = "MONEY_")
    private Double money;

    /**
     * 经费类型
     */
    @TableField(value = "MONEY_TYPE_CODE_")
    private String moneyTypeCode;

    /**
     * 还款单编号
     */
    @TableField(value = "TP_REPAY_ID_")
    private String tpRepayId;

    /**
     * 经费主表编号
     */
    @TableField(value = "MONEY_INFO_ID_")
    private String moneyInfoId;

    /**
     * 经费冻结编号
     */
    @TableField(value = "MONEY_FREEZS_ID_")
    private String moneyFreezsId;

    /**
     * 能编辑-从借款报销单转来的不可以编辑
     */
    @TableField(value = "CAN_EDIT")
    private Boolean canEdit;

    @TableField(value = "CATE_CODE_")
    private String cateCode;

    @TableField(value = "CATE_NAME", exist = false)
    private String cateName;
}